package games.ninJumpDx.ui.factorys
{
	import flash.display.BitmapData;
	
	import games.ninJumpDx.data.Animations;
	import games.ninJumpDx.tools.Tools;
	import games.ninJumpDx.ui.actions.MoveUnit;
	
	import interfaces.IAction;
	import utils.ActionFactory;

	public class MunitFactory extends ActionFactory
	{
		public function MunitFactory()
		{
			super();
		}
		
		override protected function createAction(name:String=null):IAction
		{
			var bmd:BitmapData = Tools.getBitmapDataByName(name,GFrame.MAIN_UI);
			var des:Object = Animations.getAnimationByName(name);
			return new MoveUnit(bmd,des);
		}
	}
}